package org.carl.base.driving.controller;

import org.carl.base.driving.DriveManage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("msg")
public class MessageController {
    @Autowired
    private DriveManage driveManage;
    @RequestMapping("send")
    public void send(@RequestParam("msg") String msg){
//        driveManage.send("org.msg.hello",msg);
        driveManage.send("org.msg.hello",msg,5000);
    }
}
